﻿<%@ Page Title="" Language="C#" MasterPageFile="~/MainSite.Master" AutoEventWireup="true" CodeBehind="RedigeraRakning.aspx.cs" Inherits="TandvardsstodApp.Rakningar.RedigeraRakning" %>
<asp:Content ID="Content1" ContentPlaceHolderID="title" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="head" runat="server">
</asp:Content>

<%-- Skapad och bearbetad av Ali Agha --%>

<asp:Content ID="Content3" ContentPlaceHolderID="MainContent" runat="server">
    <asp:Label ID="Label1" runat="server" Font-Bold="True" Font-Italic="True" 
        Text="Redigera räkning"></asp:Label>
    <br />
    <br />
    <br />
    <asp:Label ID="lblSokRakning" runat="server" Font-Bold="True" 
        Text="Sök efter räkning: "></asp:Label>
    &nbsp;&nbsp;<asp:TextBox ID="txtSokRakning" runat="server"></asp:TextBox>
    <asp:Button ID="btnSokRakning" runat="server" Text="Sök" 
        onclick="btnSokRakning_Click" CausesValidation="false"/>
    <asp:Label ID="lblResultatRakning" runat="server" Font-Bold="True"></asp:Label>
    <br />
    <br />
    <br />
    <asp:Table ID="Table1" runat="server" Width="471px">
            <asp:TableRow ID="TableRow1" runat="server">
                <asp:TableCell ID="TableCell1" runat="server"><asp:Label ID="lblPersonNr" runat="server" Text="Personnummer: "></asp:Label>
                
                </asp:TableCell>
                <asp:TableCell ID="TableCell2" runat="server"><asp:TextBox ID="txtPersonNr" runat="server"></asp:TextBox>
                
                <asp:RequiredFieldValidator ID="rfvPersonnummer" runat="server" ControlToValidate="txtPersonNr" 
                    ErrorMessage="Personnummer krävs.">*</asp:RequiredFieldValidator>
                    
                    <asp:RegularExpressionValidator ID="revPersonnummer" runat="server" ForeColor="Red" ControlToValidate="txtPersonNr" meta:resourcekey="revPersonnummer" 
                    ValidationExpression="[0-9]{6}[-][0-9]{4}">ÅÅMMDD-0000</asp:RegularExpressionValidator>
                
                </asp:TableCell>
            </asp:TableRow>
            <asp:TableRow ID="TableRow2" runat="server">
                <asp:TableCell ID="TableCell3" runat="server"><asp:Label ID="lblFörNamn" runat="server" Text="Förnamn: "></asp:Label>
                
                </asp:TableCell>
                <asp:TableCell ID="TableCell4" runat="server"><asp:TextBox ID="txtFörNamn" runat="server"></asp:TextBox>
                
                </asp:TableCell>
            </asp:TableRow>
            <asp:TableRow ID="TableRow3" runat="server">
                <asp:TableCell ID="TableCell5" runat="server"><asp:Label ID="lblEfterNamn" runat="server" Text="Efternamn: "></asp:Label>
                
                </asp:TableCell>
                <asp:TableCell ID="TableCell6" runat="server"><asp:TextBox ID="txtEfterNamn" runat="server"></asp:TextBox>
                
                </asp:TableCell>
            </asp:TableRow>
            <asp:TableRow ID="TableRow4" runat="server">
                <asp:TableCell ID="TableCell7" runat="server"><asp:Label ID="lblBruttoKostnad" runat="server" Text="Brutto kostnad: "></asp:Label>
                
                </asp:TableCell>
                <asp:TableCell ID="TableCell8" runat="server"><asp:TextBox ID="txtBruttoKostnad" runat="server"></asp:TextBox>
                
                </asp:TableCell>
            </asp:TableRow>
            <asp:TableRow ID="TableRow5" runat="server">
                <asp:TableCell ID="TableCell9" runat="server"><asp:Label ID="lblErlagdPatientAvgift" runat="server" Text="Erlagd patientavgift: "></asp:Label>
                
                </asp:TableCell>
                <asp:TableCell ID="TableCell10" runat="server"><asp:TextBox ID="txtErlagdPatientAvgift" runat="server"></asp:TextBox>
                
                </asp:TableCell>
            </asp:TableRow>
            <asp:TableRow ID="TableRow6" runat="server">
                <asp:TableCell ID="TableCell11" runat="server"><asp:Label ID="lblNettoKrav" runat="server" Text="Netto krav: "></asp:Label>
                
                </asp:TableCell>
                <asp:TableCell ID="TableCell12" runat="server"><asp:TextBox ID="txtnettoKrav" runat="server"></asp:TextBox>
                
                </asp:TableCell>
            </asp:TableRow>
            <asp:TableRow ID="TableRow7" runat="server">
                <asp:TableCell ID="TableCell13" runat="server"><asp:Label ID="lblAntalBesök" runat="server" Text="Antal petientbesök: "></asp:Label>
                
                </asp:TableCell>
                <asp:TableCell ID="TableCell14" runat="server"><asp:TextBox ID="txtAntalBesök" runat="server"></asp:TextBox>
                
                </asp:TableCell>
            </asp:TableRow>
            <asp:TableRow ID="TableRow8" runat="server">
                <asp:TableCell ID="TableCell15" runat="server"><asp:Label ID="lblBetaldaBesök" runat="server" Text="Avgiftsbelagda besök: "></asp:Label>
                
                </asp:TableCell>
                <asp:TableCell ID="TableCell16" runat="server"><asp:TextBox ID="txtBetaldaBesök" runat="server"></asp:TextBox>
                
                </asp:TableCell>
            </asp:TableRow>
            <asp:TableRow ID="TableRow9" runat="server">
                <asp:TableCell ID="TableCell17" runat="server"><asp:Label ID="lblFrikortsBesök" runat="server" Text="Frikortsbesök: "></asp:Label>
                
                </asp:TableCell>
                <asp:TableCell ID="TableCell18" runat="server"><asp:TextBox ID="txtFrikortsBesök" runat="server"></asp:TextBox>
                
                </asp:TableCell>
            </asp:TableRow>
            <asp:TableRow ID="TableRow10" runat="server">
                <asp:TableCell ID="TableCell19" runat="server"><asp:Label ID="lblUteblivande" runat="server" Text="Uteblivande: "></asp:Label>
                
                </asp:TableCell>
                <asp:TableCell ID="TableCell20" runat="server"><asp:TextBox ID="txtUteblivande" runat="server"></asp:TextBox>
                
                </asp:TableCell>
            </asp:TableRow>
            <asp:TableRow ID="TableRow11" runat="server">
                <asp:TableCell ID="TableCell21" runat="server"><asp:Label ID="lblInkommandeDatum" runat="server" Text="Inkommande datum: "></asp:Label>
                
                </asp:TableCell>
                <asp:TableCell ID="TableCell22" runat="server"><asp:TextBox ID="txtInkommandeDatum" runat="server"></asp:TextBox>
                    
                    <asp:RequiredFieldValidator ID="rfvInkommandeDatum" runat="server" ControlToValidate="txtInkommandeDatum" 
                    ErrorMessage="Fel inmatning av datum.">*</asp:RequiredFieldValidator>
                    
                    <asp:RegularExpressionValidator ID="revInkommandeDatum" runat="server" ForeColor="Red" ControlToValidate="txtInkommandeDatum" meta:resourcekey="revInkommandeDatum" 
                    ValidationExpression="[0-9]{4}[-][0-9]{2}[-][0-9]{2}">YYYY-MM-DD</asp:RegularExpressionValidator>
                
                </asp:TableCell>
            </asp:TableRow>
            <asp:TableRow ID="TableRow12" runat="server">
                <asp:TableCell ID="TableCell23" runat="server"><asp:Label ID="lblUtanordnadDatum" runat="server" Text="Utanordnad datum: "></asp:Label>
                
                </asp:TableCell>
                <asp:TableCell ID="TableCell24" runat="server"><asp:TextBox ID="txtUtanordnadDatum" runat="server"></asp:TextBox>
                    
                    <asp:RequiredFieldValidator ID="rfvUtanordnadDatum" runat="server" ControlToValidate="txtUtanordnadDatum" 
                    ErrorMessage="Fel inmatning av datum.">*</asp:RequiredFieldValidator>
                    
                    <asp:RegularExpressionValidator ID="revUtanordnadDatum" runat="server" ForeColor="Red" ControlToValidate="txtUtanordnadDatum" meta:resourcekey="revUtanordnadDatum" 
                    ValidationExpression="[0-9]{4}[-][0-9]{2}[-][0-9]{2}">YYYY-MM-DD</asp:RegularExpressionValidator>
                
                </asp:TableCell>
            </asp:TableRow>
            <asp:TableRow ID="TableRow13" runat="server">
                <asp:TableCell ID="TableCell25" runat="server"><asp:Label ID="lblLöpNr" runat="server" Text="Förhandsbedömning löpnr: "></asp:Label>
                
                </asp:TableCell>
                <asp:TableCell ID="TableCell26" runat="server"><asp:TextBox ID="txtLöpNr" runat="server"></asp:TextBox>
                
                </asp:TableCell>
            </asp:TableRow>
            <asp:TableRow ID="TableRow14" runat="server">
                <asp:TableCell ID="TableCell27" runat="server"><asp:Label ID="lblJusteratKrav" runat="server" Text="Justerat krav: "></asp:Label>
                
                </asp:TableCell>
                <asp:TableCell ID="TableCell28" runat="server"><asp:TextBox ID="txtJusteratKrav" runat="server"></asp:TextBox>
                
                </asp:TableCell>
            </asp:TableRow>
            <asp:TableRow ID="TableRow15" runat="server">
                <asp:TableCell ID="TableCell29" runat="server"><asp:Label ID="lblFTVmånad" runat="server" Text="FTVmånad: "></asp:Label>
                
                </asp:TableCell>
                <asp:TableCell ID="TableCell30" runat="server"><asp:TextBox ID="txtFTVmånad" runat="server"></asp:TextBox>
                    
                    <asp:RequiredFieldValidator ID="rfvFTVmånad" runat="server" ControlToValidate="txtFTVmånad" 
                    ErrorMessage="Fel inmatning av datum.">*</asp:RequiredFieldValidator>
                    
                    <asp:RegularExpressionValidator ID="revFTVmånad" runat="server" ForeColor="Red" ControlToValidate="txtFTVmånad" meta:resourcekey="revFTVmånad" 
                    ValidationExpression="[0-9]{4}[-][0-9]{2}[-][0-9]{2}">YYYY-MM-DD</asp:RegularExpressionValidator>
                
                </asp:TableCell>
            </asp:TableRow>
            <asp:TableRow ID="TableRow16" runat="server">
                <asp:TableCell ID="TableCell31" runat="server"><asp:Label ID="lblVårdTOM" runat="server" Text="Vård t.o.m: "></asp:Label>
                
                </asp:TableCell>
                <asp:TableCell ID="TableCell32" runat="server"><asp:TextBox ID="txtVårdTOM" runat="server"></asp:TextBox>
                
                </asp:TableCell>
            </asp:TableRow>
            <asp:TableRow ID="TableRow17" runat="server">
                <asp:TableCell ID="TableCell33" runat="server"><asp:Label ID="lblTypAvVård" runat="server" Text="Typ av vård: "></asp:Label>
                
                </asp:TableCell>
                <asp:TableCell ID="TableCell34" runat="server"><asp:TextBox ID="txtTypAvVård" runat="server"></asp:TextBox>
                
                </asp:TableCell>
            </asp:TableRow>
            <asp:TableRow ID="TableRow18" runat="server">
                <asp:TableCell ID="TableCell35" runat="server"><asp:Label ID="lblBehKod" runat="server" Text="Behandlarkod: "></asp:Label>
                
                </asp:TableCell>
                <asp:TableCell ID="TableCell36" runat="server">
                <asp:DropDownList ID="DdlBehKod" runat="server">
                    <asp:ListItem>Ingen behandlare</asp:ListItem>
                </asp:DropDownList>
                
                </asp:TableCell>
            </asp:TableRow>
            <asp:TableRow ID="TableRow19" runat="server">
                <asp:TableCell ID="TableCell37" runat="server"><asp:Label ID="lblKlinik" runat="server" Text="Klinik: "></asp:Label>
                
                </asp:TableCell>
                <asp:TableCell ID="TableCell38" runat="server">
                <asp:DropDownList ID="DdlKlinik" runat="server">
                    <asp:ListItem>Ingen klinik</asp:ListItem>
                </asp:DropDownList>
                
                </asp:TableCell>
            </asp:TableRow>
            <asp:TableRow ID="TableRow20" runat="server">
                <asp:TableCell ID="TableCell39" runat="server"><asp:Label ID="lblGrupp" runat="server" Text="Nuvarande grupp: "></asp:Label>
                
                </asp:TableCell>
                <asp:TableCell ID="TableCell40" runat="server">
                <asp:DropDownList ID="DdlGrupp" runat="server">
                    <asp:ListItem>1</asp:ListItem>
                    
                    <asp:ListItem>2</asp:ListItem>
                    
                    <asp:ListItem>3</asp:ListItem>
                    
                    <asp:ListItem>4</asp:ListItem>
                    
                    <asp:ListItem>5</asp:ListItem>
                    
                </asp:DropDownList>
                
                </asp:TableCell>
            </asp:TableRow>
    </asp:Table>

        <asp:CheckBox ID="chkNodTandvard" runat="server" Text="Nödvändig tandvård" />
        <br />
        <asp:CheckBox ID="chkTSLIES" runat="server" Text="Tandvård som led i en sjukdomsbehandling" />
        <br />
        <asp:CheckBox ID="chkFörhandsprövningGjord" runat="server" Text="Förhandsprövning gjord" />
        <br />
        <asp:CheckBox ID="chkMakulerad" runat="server" Text="Makulerad" />
        <br />
        <asp:CheckBox ID="chkGodkänd" runat="server" Text="Godkänd" />
        <br />
        <asp:CheckBox ID="chkTandvårdsIntyg" runat="server" Text="Tandvårdsintyg finns" />
        <br />
        <asp:CheckBox ID="chkFHPFinns" runat="server" Text="FHP finns" />
        <br />
        <asp:CheckBox ID="chkPatientlista" runat="server" Text="Patientlista" />
        <br />
        <asp:CheckBox ID="chkSärskildÅtgärd" runat="server" Text="Särskild åtgärd" />
        <br />
        <asp:Label ID="LblKommentar" runat="server" Text="Kommentar:"></asp:Label>
        <br />
        <asp:TextBox ID="txtKommentar" runat="server" Height="68px" TextMode="MultiLine" 
            Width="278px"></asp:TextBox>
        <br />
        <br />
        <asp:Button ID="btnSpara" runat="server" onclick="btnSpara_Click" 
        Text="Spara" />
        <br />

</asp:Content>
